<?php
if($act=="edit")
{
    $sql_select = "select * from tblhotel where iId='$id'";
    $rs         = $dbsql->query($sql_select);
    if($dbsql->num_rows($rs)==0)
    {
        page_transfer("Hotel not exists!");
    }
    $hotel      = $dbsql->fetch_array($rs);
}else
{
    $hotel                  = array();
    $hotel['iLocationId']   =$id;
    $hotel['iStatus']       =1;
    $id                     =0;
}
?>